Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for spamaway #7276

Merged
merged 4 commits into from
Jan 17, 2020
Merged

Conversation

sssash18
Copy link
Contributor

@sssash18 sssash18 commented Jan 17, 2020

Fixes #4321 (<=== Add issue number here)
(part of issue)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@codecov
Copy link

codecov bot commented Jan 17, 2020

Codecov Report

Merging #7276 into master will increase coverage by 20.34%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #7276       +/-   ##
==========================================
+ Coverage   61.25%   81.6%   +20.34%     
==========================================
  Files          97      97               
  Lines        5709    5599      -110     
==========================================
+ Hits         3497    4569     +1072     
+ Misses       2212    1030     -1182
Impacted Files Coverage Δ
app/models/tag.rb 97.46% <ø> (+0.46%) ⬆️
app/models/node.rb 90.92% <100%> (+2.98%) ⬆️
app/controllers/application_controller.rb 92.3% <100%> (+8.4%) ⬆️
app/controllers/home_controller.rb 98.38% <0%> (+1.61%) ⬆️
app/models/user.rb 91.01% <0%> (+1.95%) ⬆️
app/models/image.rb 82.5% <0%> (+2.5%) ⬆️
app/models/comment.rb 76.78% <0%> (+2.5%) ⬆️
app/models/spamaway.rb 94.87% <0%> (+2.56%) ⬆️
app/models/tag_selection.rb 96% <0%> (+4%) ⬆️
... and 31 more

@SidharthBansal SidharthBansal added this to the Login/SignUp & OAuth milestone Jan 17, 2020
Copy link
Member

@SidharthBansal SidharthBansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Great

@SidharthBansal
Copy link
Member

@Uzay-G @VladimirMikulic what are your views?
Can we merge this?

@@ -80,6 +80,25 @@ def setup
assert response.body.include? 'errors prohibited this user from being saved'
assert response.body.include? 'Email should look like an email address.'
end
test 'spamaway text area not blank error message'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be an empty line between the tests.

Copy link
Contributor

@VladimirMikulic VladimirMikulic Jan 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test 'something' do
    # Logic
end

Copy link
Contributor

@VladimirMikulic VladimirMikulic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please resolve the issue with Travis.

Copy link
Contributor

@VladimirMikulic VladimirMikulic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @sssash18 🚀

@VladimirMikulic
Copy link
Contributor

@SidharthBansal we can merge this :)

@sssash18
Copy link
Contributor Author

Thank you @SidharthBansal @VladimirMikulic for your approval.

@sssash18
Copy link
Contributor Author

@VladimirMikulic @SidharthBansal Are their any more tests we need to add that I can help with?

Copy link
Contributor

@VladimirMikulic VladimirMikulic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Travis is broken, we can not merge this until Travis is fixed.

@sssash18
Copy link
Contributor Author

@VladimirMikulic Could you guide me about how to fix Travis here?

@SidharthBansal
Copy link
Member

Ping any of us(@jywarren @SidharthBansal @VladimirMikulic @Uzay-G @cesswairimu ) if travis still fails

@VladimirMikulic
Copy link
Contributor

Let me test it locally.

@SidharthBansal
Copy link
Member

SidharthBansal commented Jan 17, 2020 via email

@VladimirMikulic
Copy link
Contributor

VladimirMikulic commented Jan 17, 2020

Aha! I know where is the problem, should have noticed that earlier 😄
You are missing the do keyword, once you add it your test will pass.

@VladimirMikulic
Copy link
Contributor

Check out my review comment.

@sssash18
Copy link
Contributor Author

Sorry all of you for such a silly mistake

@VladimirMikulic
Copy link
Contributor

Fingers 🤞

@SidharthBansal
Copy link
Member

SidharthBansal commented Jan 17, 2020 via email

@VladimirMikulic
Copy link
Contributor

@sssash18 don't apologise! It happens to everyone.

@SidharthBansal
Copy link
Member

SidharthBansal commented Jan 17, 2020 via email

@sssash18
Copy link
Contributor Author

@SidharthBansal I think now it's fine.

@VladimirMikulic
Copy link
Contributor

Congratulations @sssash18 🚀 🚀 🚀

Copy link
Member

@SidharthBansal SidharthBansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!
Just checking are you a GCI student?

@cesswairimu
Copy link
Collaborator

This is awesome 🎉 🎉

@SidharthBansal SidharthBansal merged commit 9a5ffcd into publiclab:master Jan 17, 2020
@sssash18
Copy link
Contributor Author

Awesome!
Just checking are you a GCI student?

No @SidharthBansal

vinitshahdeo pushed a commit to vinitshahdeo/plots2 that referenced this pull request Feb 1, 2020
* Added 'spamaway_textarea blank error' test

* Added empty line between the test

* Added 'do'
NitinBhasneria pushed a commit to NitinBhasneria/plots2 that referenced this pull request Feb 5, 2020
* Added 'spamaway_textarea blank error' test

* Added empty line between the test

* Added 'do'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration Tests for Spam Away
4 participants